<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>复制渠道系数</title>
</head>
<style>
    .label-text-line{
        position: relative;
        display: inline-block;
        vertical-align: middle;
        float: left;
        margin-right: 20px;
    }
    .label-text-line-padding{
        padding: 7px 0px;
    }
</style>
<body>

<div class="layui-fluid">

    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <div class="layui-form-item">
<!--                <label class="layui-form-label">【温馨提示】</label>-->
                <div class="label-text-line label-text-line-padding">
                    【温馨提示】复制某个渠道系数包含：渠道折扣系数、渠道城市系数、渠道品牌系数；复制渠道系数成功后，该渠道的原有系数将被全部清除并且使用复制的系数，只复制已生效的渠道系数
                </div>
            </div>
            <div class="layui-form-item" style="margin-bottom: 30px;">
                <label class="layui-form-label  layui-form-required">渠道：</label>
                <div class="layui-input-inline" style="width:300px">
                    <select name="channelId" lay-verify="required" id="channelId"
                            lay-filter="channelId" lay-search>
                        <option value=""></option>
                        <option th:each="channel:${channelList}"  th:value="${channel.channelId}" th:text="${channel.name}">
                        </option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item" style="margin-bottom: 30px;">
                <label class="layui-form-label layui-form-required">系数：</label>
                <div class="layui-input-inline" style="width:300px">
                    <select id="ratioType" name="ratioType"  xm-select="ratioType" xm-select-height="30px">
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">生效日期：</label>
                <div class="layui-input-inline">
                    <input type="text" id="effectiveDate" name="effectiveDate" placeholder="yyyy-MM-dd" class="layui-input"
                           autocomplete="off" readonly/>
                </div>
                <div class="layui-input-inline">
                    <label style="color: #9F9F9F;width: 400px">生效日期选择后，配置的数据将在该日期的0点生效，不填则默认次日0：00生效 </label>
                </div>
            </div>


            <div class="layui-split" style="margin-bottom: 100px">&nbsp;</div>
            <div class="layui-split" style="margin-bottom: 100px">&nbsp;</div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">确认使用</button>
                    <button class="layui-btn layui-btn-primary" id="cancleBtn">
                        取消
                    </button>
                </div>
            </div>

            <div class="layui-split" style="margin-bottom: 5px">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        channelId: [[${channelId}]],
        bizType: [[${bizType}]],
        priceType: [[${priceType}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        channel_ratio_copy: "channel/zmn.plat.channel.copy.ratio",
    }).use(['index', 'channel_ratio_copy']);
</script>
</body>
</html>